package com.macro.mall.tiny.modules.pms.service.impl;

import com.macro.mall.tiny.modules.pms.controller.PmsErrorCaseController;
import com.macro.mall.tiny.modules.pms.model.PmsErrorCase;
import com.macro.mall.tiny.modules.pms.mapper.PmsErrorCaseMapper;
import com.macro.mall.tiny.modules.pms.service.PmsErrorCaseService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.macro.mall.tiny.modules.pms.vo.PmsErrorCaseVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author tyrone
 * @since 2024-10-09
 */
@Service
public class PmsErrorCaseServiceImpl extends ServiceImpl<PmsErrorCaseMapper, PmsErrorCase> implements PmsErrorCaseService {

    @Autowired
    private PmsErrorCaseMapper pmsErrorCaseMapper;

    @Override
    public List<PmsErrorCaseVO> getErrorCaseCategory() {
        List<PmsErrorCaseVO> result = pmsErrorCaseMapper.getErrorCaseCategory();
        if (result == null) {
            return Collections.emptyList();
        }
        return result;
    }
}
